import React from 'react';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { routes } from './routes';

export const router = createBrowserRouter(routes, {
  basename: '/admin'
});

export function AppRouter() {
  return <RouterProvider router={router} />;
}

export * from './routes';
